
Page({
    data: {
        list:[0,1,2,3,4,5,6,7,8,9],
        index1: 0,
        index2: 0,
        index3: 0
    },
    onReady: function(){
        wx.setNavigationBarTitle({
            title: '排队等待'
        });
    },
    handleClick1(e) {
        this.setData({
            index1: e.target.dataset.index
        })
    },
    handleClick2(e) {
        this.setData({
            index2: e.target.dataset.index
        })
    },
    handleClick3(e) {
        this.setData({
            index3: e.target.dataset.index
        })
    },
    payClick() {
        wx.showModal({
            title: '提示',
            content: '需要支付2元排队费',
            confirmColor: '#3b95e3',
            success: function(res) {
                if (res.confirm) {
                console.log('用户点击确定')
                } else if (res.cancel) {
                console.log('用户点击取消')
                }
            }
        })
    }
})